<!DOCTYPE html>
<html>
<head>
    <title>聊天室 - 注册</title>
    <style>
        body { 
            font-family: Arial, sans-serif; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            height: 100vh; 
            margin: 0; 
            background-color: #f0f0f0;
        }
        .container { 
            background-color: white; 
            padding: 2rem; 
            border-radius: 8px; 
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        h1 { 
            text-align: center; 
            color: #333;
        }
        .form-group { 
            margin-bottom: 1rem;
        }
        label { 
            display: block; 
            margin-bottom: 0.5rem; 
            color: #666;
        }
        input { 
            width: 100%; 
            padding: 0.5rem; 
            border: 1px solid #ddd; 
            border-radius: 4px;
        }
        button { 
            width: 100%; 
            padding: 0.7rem; 
            background-color: #2196F3; 
            color: white; 
            border: none; 
            border-radius: 4px; 
            cursor: pointer;
        }
        button:hover { 
            background-color: #0b7dda;
        }
        .link { 
            text-align: center; 
            margin-top: 1rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>注册账号</h1>
        <form method="post">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" id="username" name="username" required>
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" id="password" name="password" required>
            </div>
            <button type="submit">注册</button>
        </form>
        <div class="link">
            已有账号？<a href="/">登录</a>
        </div>
    </div>
</body>
</html>